﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace tabwin
{
    public static class MoudelCommon
    {
        public static string moudelName = string.Empty;

        public static IList<string> moudelList = new List<string>();

        public static void AddTab(string name)
        {
            moudelList.Add(name);
        }

        public static void RemoveTab(string name)
        {
            moudelList.Remove(name);
        }

        public static bool hadTab(string name)
        {
            bool had = false;
            var p = from item in moudelList
                    where item == name
                    select item;
            int count = p.ToList().Count;
            if (count > 0)
                had = true;
            else
                had = false;
            return had;
        }

    }
}
